package com.jiazhong.shixi.diancan_xitong.mapper;


import com.jiazhong.shixi.diancan_xitong.bean.Table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface TableMapper {

    @Select("select * from `table`")
     List<Table> findByTabNum();

    @Update("update `table` set tab_status=1 where tab_number=#{tab_number}")
     void select(Table tb);

    @Update("update `table` set tab_status=0 where tab_number=#{tab_number}")
     void out(Table tb);

}
